import request from '../request'
import { API_PREFIX } from '../constants'

export const tagApi = {
  // 获取标签列表
  getList(params) {
    return request({
      url: `${API_PREFIX}/tags/`,
      method: 'get',
      params
    })
  },

  // 获取标签详情
  getDetail(slug) {
    return request({
      url: `${API_PREFIX}/tags/${slug}/`,
      method: 'get'
    })
  }
} 